<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %>
<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8">
    <title>管理员界面</title>
    <link href="./css/admin.css" rel="stylesheet">
</head>
<body>
<div class="">
    <div class="header">
        <h1 class="header">博客后台</h1>
    </div>
    <div class="left">
        <form action="">
            <input type="button" class="button1" value="用户管理" onclick="changePage('users')"><br/>
            <input type="button" class="button1" value="文章管理" onclick="changePage('article')"><br/>
            <input type="button" class="button1" value="标签管理" onclick="changePage('tap')"><br/>
            <input type="button" class="button1" value="文章分类管理" onclick="changePage('kind')"><br/>
        </form>
    </div>
</div>
<div class="main">
    <iframe id="iframe1" class="iframe1" name="" src=""></iframe>
</div>

<script>
    function changePage(page) {
        if (page == "users")
            document.getElementById("iframe1").src = 'users.jsp';
        if (page == "article")
            document.getElementById("iframe1").src = 'article.jsp';
        if (page == "tap")
            document.getElementById("iframe1").src = 'tap.jsp';
        if (page == "kind")
            document.getElementById("iframe1").src = 'kind.jsp';
    }
</script>
</body>
</html>